We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 3 |
Total Lines | 25 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | "use strict"; |
||
15 | function setupDragDrop() { |
||
16 | |||
17 | // Make the Location images draggable elements |
||
18 | $(".drag_loc").draggable({ |
||
19 | addClasses: false, |
||
20 | revert: "invalid", |
||
21 | cursor: "move", |
||
22 | }); |
||
23 | |||
24 | // The draggable elements can be dropped into any sector |
||
25 | $(".lm_sector").droppable({ |
||
26 | addClasses: false, |
||
27 | accept: ".drag_loc", |
||
28 | drop: function(event, ui) { |
||
29 | var href = ui.draggable.data("href"); |
||
30 | var data = { |
||
31 | TargetSectorID: $(this).find(".lmsector").text(), |
||
32 | OrigSectorID: ui.draggable.data("sector"), |
||
33 | LocationTypeID: ui.draggable.data("loc"), |
||
34 | }; |
||
35 | ajaxLink(href, {callback: setupDragDrop, params: data}); |
||
36 | }, |
||
37 | }); |
||
38 | |||
39 | } |
||
40 | |||
49 |